<%@page import="bean.UserStatus"%>
<%@page import="bean.UserBean"%>
<%@page import="dao.impl.UserDAOImpl"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	System.out.println(path);
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link rel="stylesheet" href="<%=path%>/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet"
	href="<%=path%>/bootstrap/css/bootstrap-theme.min.css" />
<script src="<%=path%>/bootstrap/js/bootstrap.min.js"></script>
<%
	String suser = (String) session.getAttribute("suser");
	UserDAOImpl daoImpl = new UserDAOImpl();
	UserBean userBean = daoImpl.selectSingleUser(suser);
	UserStatus userStatus = daoImpl.selectStatus(suser);
%>
<div class="col-md-8">
	<c:set var="userBean" value="<%=userBean%>" scope="page"></c:set>
	<c:set var="userStatus" value="<%=userStatus%>" scope="page"></c:set>
	<h3>用户名:${userBean.suser}</h3>
	<h3>真实姓名:${userBean.sname}</h3>
	<h3>出生日期:${userBean.dbrith}</h3>
	<h3>电话号码:${userBean.sphone}</h3>
	<h3>电子邮箱:${userBean.semail}</h3>
	<h3>邮政编码:${userBean.scode}</h3>
	<h3>地址:${userBean.saddress}</h3>
	<h3>登陆次数:${userStatus.nlogin}</h3>
	<h3>最后登陆时间:${userStatus.dlastdate}</h3>
	<h3>用户权限:${userStatus.slever}</h3>
	<h3>
		<input type="button" value="返回" onclick="window.history.back()">
	</h3>
</div>